﻿using System;
using VIT.Web.UI;
using System.Data;
using System.Web.UI.WebControls;
using System.Text;

namespace VIT.Web.Modules.Statistics
{
    public partial class Statistics : VITModule
    {
        public string moduleDir = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            moduleDir = URLRoot + "Modules/Statistics/";
            if (!IsPostBack)
            {
                Sttt.Online = GetGlobalResourceObject("Web", "Online").ToString();
                Sttt.ToDay = GetGlobalResourceObject("Web", "ToDay").ToString();
                Sttt.Yesterday = GetGlobalResourceObject("Web", "Yesterday").ToString();
                Sttt.ThisWeek = GetGlobalResourceObject("Web", "ThisWeek").ToString();
                Sttt.LastWeek = GetGlobalResourceObject("Web", "LastWeek").ToString();
                Sttt.ThisMonth = GetGlobalResourceObject("Web", "ThisMonth").ToString();
                Sttt.LastMonth = GetGlobalResourceObject("Web", "LastMonth").ToString();
                Sttt.All = GetGlobalResourceObject("Web", "All").ToString();

                Sttt.IconOnline = moduleDir + "images/Online.jpg";
                Sttt.IconToDay = moduleDir + "images/today.png";
                Sttt.IconYesterday = moduleDir + "images/yesterday.png";
                Sttt.IconThisWeek = moduleDir + "images/thisweek.jpg";
                Sttt.IconLastWeek = moduleDir + "images/lastweek.jpg";
                Sttt.IconThisMonth = moduleDir + "images/thismonth.png";
                Sttt.IconLastMonth = moduleDir + "images/lastmonth.png";
                Sttt.IconAll = moduleDir + "images/all.jpg";

                Sttt.BinData();
            }
            
        }
    }
}